package finance

import grails.test.*

class SubtractServiceTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

	def subtractService
	
	def testMinPrevious() {
		def subtracted = subtractService.minPrev([1, 2, 3])
		assertNotNull subtracted
		assertEquals 2, subtracted.size()
		assertEquals 1, subtracted[0]
		assertEquals 1, subtracted[1]
	}
}
